Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get the first app #231

Closed
wants to merge 1 commit into from

Conversation

PengBoUESTC
Copy link

@PengBoUESTC PengBoUESTC commented Nov 14, 2022

I get multiple output of this command:
envinfo git:(main) mdfind kMDItemCFBundleIdentifier=='com.google.Chrome'
/Applications/Google Chrome.app
/System/Volumes/Data/Previous Content/Recovered Items/Applications/Google Chrome.app

and i can't get the version of chrome

➜ envinfo git:(fix/multi-output) /usr/libexec/PlistBuddy -c "Print ApplicationProperties:CFBundleShortVersionString" /Applications/Google\ Chrome.app\ /System/Volumes/Data/Previous\ Content/Recovered\ Items/Applications/Google\ Chrome.app/Contents/Info.plist
File Doesn't Exist, Will Create: /Applications/Google Chrome.app /System/Volumes/Data/Previous Content/Recovered Items/Applications/Google Chrome.app/Contents/Info.plist
Print: Entry, "ApplicationProperties:CFBundleShortVersionString", Does Not Exist

#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant